// 该文件用于创建整个应用的路由器
import VueRouter from "vue-router";

// 引入组件
import zeroGuide from '../pages/zeroGuide'
import firstGuide from '../pages/firstGuide'
import secondGuide from '../pages/secondGuide'
import thirdGuide from '../pages/thirdGuide'
import fourthGuide from '../pages/fourthGuide'
import myLogin from '../pages/myLogin'
import myReg from '../pages/myReg'
import ifSick from '../pages/ifSick'
import myAge from '../pages/myAge'
import howLongSick from '../pages/howLongSick'
import mySymptom from '../pages/mySymptom'
import myLife from '../pages/myLife'
import myWeight from '../pages/myWeight'
import myHeight from '../pages/myHeight'
import madeProject from '../pages/madeProject'
import allModule from '../pages/allModule'
import myHealth from '../pages/myHealth'
import myRecord from '../pages/myRecord'
import myForum from '../pages/myForum'
import myStore from '../pages/myStore'
import myMyself from '../pages/myMyself'
import myFood from '../pages/myFood'
import mySport from '../pages/mySport'
import foodToday from '../pages/foodToday'
import foodKnowledge from '../pages/foodKnowledge'
import foodCourse from '../pages/foodCourse'
import sportToday from '../pages/sportToday'
import sportKnowledge from '../pages/sportKnowledge'
import sportCourse from '../pages/sportCourse'
import forumSay from '../pages/forumSay'
import forumHole from '../pages/forumHole'
import publishSay from '../pages/publishSay'
import myPublish from '../pages/myPublish'
import publishHole from '../pages/publishHole'
import shoppingCard from '../pages/shoppingCard'
import confirmOrder from '../pages/confirmOrder'
import myOrder from '../pages/myOrder'
import changeAddress from '../pages/changeAddress'
import myLike from '../pages/myLike'
import myFans from '../pages/myFans'
import myFollow from '../pages/myFollow'
import myCollection from '../pages/myCollection'
import allForum from '../pages/allForum'
import myFootprint from '../pages/myFootprint'
import myNotice from '../pages/myNotice'
import myMessage from '../pages/myMessage'
import receiveLike from '../pages/receiveLike'
import myReply from '../pages/myReply'
import messageSetting from '../pages/messageSetting'
import forumComment from '../pages/forumComment'
import openVip from '../pages/openVip'
import myChat from '../pages/myChat'
import allOrder from '../pages/allOrder'
import allGoodsContent from '../pages/allGoodsContent'
import waitingPay from '../pages/waitingPay'
import waitingSend from '../pages/waitingSend'
import waitingGet from '../pages/waitingGet'
import waitingComment from '../pages/waitingComment'
import goodDetail from '../pages/goodDetail'
import commentSay from '../pages/commentSay'


// 创建路由器
export default new VueRouter({
    routes:[
        {
            name:'zero',
            path:'/zeroGuide',
            component:zeroGuide,
        },
        {
            name:'first',
            path:'/firstguide',
            component:firstGuide,
        },
        {
            name:'second',
            path:'/secondguide',
            component:secondGuide,
        },
        {
            name:'third',
            path:'/thirdguide',
            component:thirdGuide,
        },
        {
            name:'fourth',
            path:'/fourthguide',
            component:fourthGuide,
        },
        {
            name:'login',
            path:'/login',
            component:myLogin,
        },
        {
            name:'reg',
            path:'/reg',
            component:myReg,
        },
        {
            name:'ifSick',
            path:'/ifSick',
            component:ifSick,
        },
        {
            name:'myAge',
            path:'/myAge',
            component:myAge
        },
        {
            name:'howLongSick',
            path:'/howLongSick',
            component:howLongSick
        },
        {
            name:'symptom',
            path:'/symptom',
            component:mySymptom
        },
        {
            name:'life',
            path:'/life',
            component:myLife
        },
        {
            name:'weight',
            path:'/weight',
            component:myWeight
        },
        {
            name:'height',
            path:'/height',
            component:myHeight
        },
        {
            name:'project',
            path:'/project',
            component:madeProject
        },
        {
            name:'module',
            path:'/module',
            component:allModule,
            children:[
                {
                    name:'health',
                    path:'health',
                    component:myHealth,
                    children:[
                        {
                            name:'food',
                            path:'food',
                            component:myFood,
                            children:[
                                {
                                    name:'today',
                                    path:'today',
                                    component:foodToday
                                },
                                {
                                    name:'knowledge',
                                    path:'knowledge',
                                    component:foodKnowledge
                                },
                                {
                                    name:'course',
                                    path:'course',
                                    component:foodCourse
                                }
                            ]
                        },
                        {
                            name:'sport',
                            path:'sport',
                            component:mySport,
                            children:[
                                {
                                    name:'sportToday',
                                    path:'sportToday',
                                    component:sportToday
                                },
                                {
                                    name:'sportKnowledge',
                                    path:'sportKnowledge',
                                    component:sportKnowledge
                                },
                                {
                                    name:'sportCourse',
                                    path:'sportCourse',
                                    component:sportCourse
                                }
                            ]
                        }
                    ]
                },
                {
                    name:'record',
                    path:'record',
                    component: myRecord,
                },
                {
                    name:'forum',
                    path:'forum',
                    component:myForum,
                    children:[
                        {
                            name:'say',
                            path:'say',
                            component:forumSay
                        },
                        {
                            name:'hole',
                            path:'hole',
                            component:forumHole
                        },
                    ]
                },
                {
                    name:'store',
                    path:'store',
                    component:myStore
                },
                {
                    name:'myself',
                    path:'myself',
                    component:myMyself
                }
            ]
        },
        {
            name:'myPublish',
            path:'/myPublish',
            component:myPublish
        },
        {
            name:'publishSay',
            path:'/publishSay',
            component:publishSay
        },
        {
            name:'publishHole',
            path:'/publishHole',
            component:publishHole
        },
        {
            name:'shoppingCard',
            path:'/shoppingCard',
            component:shoppingCard
        },
        {
            name:'confirmOrder',
            path:'/confirmOrder',
            component:confirmOrder
        },
        {
            name:'myOrder',
            path:'/myOrder',
            component:myOrder
        },
        {
            name:'changeAddress',
            path:'/changeAddress',
            component:changeAddress
        },
        {
            name:'myLike',
            path:'/myLike',
            component:myLike
        },
        {
            name:'myFans',
            path:'/myFans',
            component:myFans
        },
        {
            name:'myFollow',
            path:'/myFollow',
            component:myFollow
        },
        {
            name:'myCollection',
            path:'/myCollection',
            component:myCollection
        },
        {
            name:'allForum',
            path:'/allForum',
            component:allForum
        },
        {
            name:'myFootprint',
            path:'/myFootprint',
            component:myFootprint
        },
        {
            name:'myNotice',
            path:'/myNotice',
            component:myNotice
        },
        {
            name:'myMessage',
            path:'/myMessage',
            component:myMessage
        },
        {
            name:'receiveLike',
            path:'/receiveLike',
            component:receiveLike
        },
        {
            name:'myReply',
            path:'/myReply',
            component:myReply
        },
        {
            name:'messageSetting',
            path:'/messageSetting',
            component:messageSetting
        },
        {
            name:'forumComment',
            path:'/forumComment',
            component:forumComment
        },
        {
            name:'openVip',
            path:'/openVip',
            component:openVip
        },
        {
            name:'myChat',
            path:'/myChat',
            component:myChat
        },
        {
            name:'allOrder',
            path:'/allOrder',
            component:allOrder,
            children:[
                {
                    name:'allGoodsContent',
                    path:'allGoodsContent',
                    component:allGoodsContent
                },
                {
                    name:'waitingPay',
                    path:'waitingPay',
                    component:waitingPay
                },
                {
                    name:'waitingSend',
                    path:'waitingSend',
                    component:waitingSend
                },
                {
                    name:'waitingGet',
                    path:'waitingGet',
                    component:waitingGet
                },
                {
                    name:'waitingComment',
                    path:'waitingComment',
                    component:waitingComment
                }
            ]
        },
        {
            name:'goodDetail',
            path:'/goodDetail',
            component:goodDetail
        },
        {
            name:'commentSay',
            path:'commentSay',
            component:commentSay
        }
    ]
})